// import Cookies from 'js-cookie'

const TokenKey = 'accessToken'
const RealnameKey = 'CrlRealname'

export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

/**
 * 获取用户姓名
 */
export function getRealname() {
  return localStorage.getItem(RealnameKey)
}

export function setRealname(realname) {
  return localStorage.setItem(RealnameKey, realname)
}
